package com.hqyj.paimaisys.controller;


import com.hqyj.paimaisys.web.ResponseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.Response;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/hello")
    public ResponseResult<String> hello(){
        int i = 10/0;
        return ResponseResult.success("hello成功");
    }
}
